package com.sdp.wx.db.wx_wz_now_num.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import org.springframework.format.annotation.DateTimeFormat;

import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zsp
 * @since 2024-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wx_wz_now_num")
public class WxWzNowNum extends Model<WxWzNowNum> {

    private static final long serialVersionUID=1L;

    /**
     * 内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 器材编码
     */
    @TableField("wz_no")
    private String wzNo;

    /**
     * 当前库存
     */
    @TableField("now_num")
    private BigDecimal nowNum;

    /**
     * 记录生成时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 预警库存
     */
    @TableField("alert_number")
    private BigDecimal alertNumber;

    /**
     * 所属公司
     */
    @TableField("org_no")
    private String orgNo;

    /**
     * 仓库
     */
    @TableField("warehouse_code")
    private String warehouseCode;


    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
